using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MBMC.Dialogs.Premium
{
    public partial class GetFreeBetaPremium : Form
    {
        public GetFreeBetaPremium()
        {
            InitializeComponent();
        }

        private void GetFreeBetaPremium_Load(object sender, EventArgs e)
        {
            panel1.Hide();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox3.Text == "28")
            {
                if (textBox2.Text != "")
                {
                    if (textBox1.Text != "")
                    {
                        //zacni registrovat
                        panel1.Show();
                        timer1.Start();
                    }
                    else
                    {
                        //chyba
                        MessageBox.Show("Please check the input data!");
                    }
                }
                else
                {
                    //chyba
                    MessageBox.Show("Please check the input data!");
                }
            }
            else
            {
                //chyba
                MessageBox.Show("Please check the input data!");
            }
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Stop();
            MessageBox.Show("Your registration code is: 4786(MBMC-4076-2320-9514-5697) This code expire to the next version. Good luck with the mods :)", "Mato Programs[MBMCS1 V1.0]", MessageBoxButtons.OK,MessageBoxIcon.Information);
            this.Close();
        }
    }
}